import request from '@/utils/request'
export function fetchData(data) {
  return request({
    url: '/repo/page',
    method: 'post',
    data
  })
}
export function save(data) {
  return request({
    url: '/repo/update',
    method: 'put',
    data
  })
}

export function add(data) {
    return request({
      url: '/repo/add',
      method: 'post',
      data
    })
  }
  export function deleteById(id) {
    return request({
      url: `/repo/${id}`,
      method: 'delete',
    })
  }  
  export function deleteBatch(data) {
    return request({
      url: '/repo/deleteAll/',
      method: 'delete',
      data
    })
  }  

  export function findALL() {
    return request({
      url: '/repo/list',
      method: 'GET',
      
    })
  }  

